package com.huaguoguo.cyg.service.weibo.data.impl;

import com.huaguoguo.cyg.annotation.SkipIfKeyExists;
import com.huaguoguo.cyg.entity.weibo.dto.WbDetailDTO;
import com.huaguoguo.cyg.dao.weibo.WbDetailMapper;
import com.huaguoguo.cyg.service.weibo.data.IWbDetailService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Collection;

/**
 * <p>
 *   服务实现类
 * </p>
 *
 * @author huaguoguo
 * @since 2020-02-09
 */
@Service
public class WbDetailServiceImpl extends ServiceImpl<WbDetailMapper, WbDetailDTO> implements IWbDetailService {

    /**
     * 批量插入
     *
     * @param entityList ignore
     * @return ignore
     */
    @Override
    @SkipIfKeyExists(keys = {"mid"})
    public boolean saveBatch(Collection<WbDetailDTO> entityList) {
        return super.saveBatch(entityList);
    }
}
